/*
 * tcp_helper.h
 *
 *  Created on: May 9, 2016
 *      Author: Alan Wang
 */

#ifndef BUSINESS_TCP_TCP_HELPER_H_
#define BUSINESS_TCP_TCP_HELPER_H_

/**
 * init server socket
 */
int init_tcp_socket(int socket_port);

/**
 * receive data from client
 */
int recv_data_from_client(char** json_content_str, int client_socket_fd);
/**
 * send data to client
 */
int send_data_to_client(int client_socket_fd, char* json_str);


#endif /* BUSINESS_TCP_TCP_HELPER_H_ */
